home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: Command Line Arguments
- Date: 7 Mar 1996 16:35:30 GMT
- Organization: Clark Internet Services, Inc., Ellicott City, MD USA
- Message-ID: <4hn38i$rmb@clarknet.clark.net>
- References: <4hmrkl$349n@unix1.sncc.lsu.edu>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- Rajesh Marar (ieraje@unix1.sncc.lsu.edu) wrote:
- :
- : In Unix programs we use argc & argv to access command-line arguments. I would
- : like to know how to do it in Visual C++ windows programs ? How exactly
- : does one use m_lpCmdLine ?
-
- In Visual C++ you also use argc and argv.
-
- int main (int argc, char *argv[]) { ... }
-
- I think m_lpCmdLine is an alternative Visual C++-specific means of access
- to the command line, making it available as a single string instead of an
- array of arguments.
-
-